package hls

import (
	"time"
	"net/http"
	"net/http/httputil"
)

type RealRetriever struct {
	UserAgen string
	TimeOut time.Duration
}

func (r *RealRetriever) Get(url string) string {
	resp,err:=http.Get(url)
	if err!=nil{
		panic(err)
	}

	result,err:=httputil.DumpResponse(resp,true)

	defer resp.Body.Close()

	if err!=nil{
		panic(err)
	}

	return string(result)
}

